<!DOCTYPE html>
<%@ page contentType="text/html;charset=UTF-8" language="java"%>
<%@ include file="/WEB-INF/views/taglibs.jsp" %>
<html>
<head> <meta http-equiv="X-UA-Compatible" content="IE=Edge">
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
</head>
<body>
<form id="form" action="bindingRole">
<input type="hidden" name="userId" value="${userId}"/>
<div class="dialogPage">
	<div class="om-panel-header">绑定角色
		<div class="bindUser"><a href="#" onclick="doSubmit()"><span class="menu4"></span>绑定</a></div>
	</div>
	<div id="content" class="editDiv">
		<ul>
		<c:forEach var="role" items="${roles}">
			<li><input type="checkbox" value="${role.roleId}" <c:if test="${role.isUse}">checked="checked"</c:if> name="roleIds">${role.roleName}</li>
		</c:forEach>
	</ul>
	</div>
</div>
</form>
</body>
<script type="text/javascript">
function doSubmit(){
	$("#form").submit();
}
</script>
</html>